package com.geilizu.dom.service;

import com.geilizu.dom.dto.SearchDto;
import com.geilizu.dom.dto.UserInfo;
import com.geilizu.dom.entity.DormitoryAdmin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;
import java.util.Map;

/**
 * (DormitoryAdmin)表服务接口
 *
 * @author makejava
 * @since 2022-07-12 15:08:43
 */
public interface DormitoryAdminService {



    DormitoryAdmin login(String username, String password);

    boolean save(DormitoryAdmin dormitoryAdmin);

    Map<String, Object> list(Integer page, Integer size);

    Map<String, Object> search(SearchDto searchDto);

    Integer deleteById(Integer id);

    Integer updateById(DormitoryAdmin dormitoryAdmin);

    List<DormitoryAdmin> list();

    DormitoryAdmin findById(Integer id);
}
